@import './common.scss';
// iconfont 后期的使用
@import '@/static/font/iconfont-weapp-icon.css';


$uni-primary: #2979ff;
$uni-primary-disable: #94bcff;
$uni-primary-light: #d4e4ff;

$uni-success: #18bc37;
$uni-success-disable: #8cde9b;
$uni-success-light: #d1f2d7;

$uni-warning: #f3a73f;
$uni-warning-disable: #f9d39f;
$uni-warning-light: #fdedd9;

$uni-error: #e43d33;
$uni-error-disable: #f29e99;
$uni-error-light: #fad8d6;

$uni-info: #8f939c;
$uni-info-disable: #c7c9ce;
$uni-info-light: #e9e9eb;
page {
  font-size: 18px;
  height: 100%;
}

view,
navigator,
input,
scroll-view {
  box-sizing: border-box;
}

button::after {
  border: none;
}

swiper,
scroll-view {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

image {
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

button {
  &[type='primary'] {
    background: $uni-primary !important;
  }
  &[type='primary'][disabled] {
    background: $uni-primary-disable !important;
  }
}

/* #ifdef APP-PLUS ||MP-WEIXIN */
checkbox .wx-checkbox-input {
  color: #ffffff !important;
  border-radius: 50% !important;
}

checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  background-color: #2979ff !important;
  border-color: #2979ff !important;
}
/* #endif */

// 两行省略
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-all;
  word-wrap: break-word;
  display: -moz-box;
}
